<template>

  <div style="width: 100vw;height: 100vh;background-image: url('public/images/bg.png')">
    <chart-map style="width:100%;height:100%"></chart-map>
    <div
        style="position: absolute;top: 0;left: 40px;bottom: 0;right: 40px;display: flex;flex-direction: column;">
      <head-view style="height: 8%"/>
      <div style="display: flex;width: 100%;flex: 1;">
        <div class="fixed-width">
          <statistics style="flex: 1"/>

          <chart-circle style="flex: 1"/>

          <chart-bar style="flex: 1"/>

        </div>
        <div class="centerBtn">
          <div v-for="item in data" style="width: 42%">
            <div class="centerBtn—title">{{ item.title }}</div>
            <div class="centerBtn—value">{{ item.value }}</div>
          </div>
        </div>
        <div class="fixed-width">
          <statistics-list style="flex: 1"/>

          <chart-line style="flex: 1"/>

          <statistics-rank style="flex: 1"/>
        </div>
      </div>
    </div>
  </div>


</template>

<script setup lang="ts">


import ChartMap from "@/components/ChartMap.vue";
import HeadView from "@/components/HeadView.vue";
import Statistics from "@/components/Statistics.vue";
import ChartCircle from "@/components/ChartCircle.vue";
import ChartBar from "@/components/ChartBar.vue";
import StatisticsList from "@/components/StatisticsList.vue";
import ChartLine from "@/components/ChartLine.vue";
import StatisticsRank from "@/components/StatisticsRank.vue";
import {ref} from "vue";


const data = ref<any>([
  {title: '今日收益总数(元)', value: 3882.71},
  {title: '今日订单数(笔)', value: 208}
]);
</script>
<style scoped>

.fixed-width {
  width: 25vw;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  margin-bottom: 20px;
}

.centerBtn {
  flex: 1;
  display: flex;
  justify-content: space-around;
}


.centerBtn—title {
  font-size: 24px;
  text-align: center;
  margin-top: 20px;
}


.centerBtn—value {
  background: rgba(10, 26, 76, 0.6);
  font-size: 48px;
  font-weight: bold;
  margin-top: 10px;
  color: rgb(33, 254, 255);
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
}

</style>
